package br.ufms.facom;


public enum Resource{
	C3p(R.drawable.card_33),C3c(R.drawable.card_35),C3e(R.drawable.card_34),C3o(R.drawable.card_36),
	C2p(R.drawable.card_37),C2c(R.drawable.card_39),C2e(R.drawable.card_38),C2o(R.drawable.card_40),
	C1p(R.drawable.card_1),C1c(R.drawable.card_3),C1e(R.drawable.card_2),C1o(R.drawable.card_4),
	Ckp(R.drawable.card_5),Ckc(R.drawable.card_7),Cke(R.drawable.card_6),Cko(R.drawable.card_8),
	Cjp(R.drawable.card_13),Cjc(R.drawable.card_15),Cje(R.drawable.card_14),Cjo(R.drawable.card_16),
	Cqp(R.drawable.card_9),Cqc(R.drawable.card_11),Cqe(R.drawable.card_10),Cqo(R.drawable.card_12),
	C7p(R.drawable.card_17),C7c(R.drawable.card_19),C7e(R.drawable.card_18),C7o(R.drawable.card_20),
	C6p(R.drawable.card_21),C6c(R.drawable.card_23),C6e(R.drawable.card_22),C6o(R.drawable.card_24),
	C5p(R.drawable.card_26),C5c(R.drawable.card_27),C5e(R.drawable.card_26),C5o(R.drawable.card_28),
	C4p(R.drawable.card_29),C4c(R.drawable.card_31),C4e(R.drawable.card_30),C4o(R.drawable.card_32),
	costa(R.drawable.b2fv);

	public int valorId;

	Resource(int valor){
		valorId = valor;
	}

	public static int getResource(String str){
		return str.contains("3p")==true?Resource.C3p.valorId:
				str.contains("3c")==true?Resource.C3c.valorId:
				str.contains("3e")==true?Resource.C3e.valorId:
				str.contains("3o")==true?Resource.C3o.valorId:
				str.contains("2p")==true?Resource.C2p.valorId:
				str.contains("2c")==true?Resource.C2c.valorId:
				str.contains("2e")==true?Resource.C2e.valorId:
				str.contains("2o")==true?Resource.C2o.valorId:
				str.contains("ap")==true?Resource.C1p.valorId:
				str.contains("ac")==true?Resource.C1c.valorId:
				str.contains("ae")==true?Resource.C1e.valorId:
				str.contains("ao")==true?Resource.C1o.valorId:
				str.contains("kp")==true?Resource.Ckp.valorId:
				str.contains("kc")==true?Resource.Ckc.valorId:
				str.contains("ke")==true?Resource.Cke.valorId:
				str.contains("ko")==true?Resource.Cko.valorId:
				str.contains("jp")==true?Resource.Cjp.valorId:
				str.contains("jc")==true?Resource.Cjc.valorId:
				str.contains("je")==true?Resource.Cje.valorId:
				str.contains("jo")==true?Resource.Cjo.valorId:
				str.contains("qp")==true?Resource.Cqp.valorId:
				str.contains("qc")==true?Resource.Cqc.valorId:
				str.contains("qe")==true?Resource.Cqe.valorId:
				str.contains("qo")==true?Resource.Cqo.valorId:
				str.contains("7p")==true?Resource.C7p.valorId:
				str.contains("7c")==true?Resource.C7c.valorId:
				str.contains("7e")==true?Resource.C7e.valorId:
				str.contains("7o")==true?Resource.C7o.valorId:
				str.contains("6p")==true?Resource.C6p.valorId:
				str.contains("6c")==true?Resource.C6c.valorId:
				str.contains("6e")==true?Resource.C6e.valorId:
				str.contains("6o")==true?Resource.C6o.valorId:
				str.contains("5p")==true?Resource.C5p.valorId:
				str.contains("5c")==true?Resource.C5c.valorId:
				str.contains("5e")==true?Resource.C5e.valorId:
				str.contains("5o")==true?Resource.C5o.valorId:
				str.contains("4p")==true?Resource.C4p.valorId:
				str.contains("4c")==true?Resource.C4c.valorId:
				str.contains("4e")==true?Resource.C4e.valorId:
				str.contains("4o")==true?Resource.C4o.valorId:
				Resource.costa.valorId;
	}

}